package com.mls.fivedistrict.server.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.mls.fivedistrict.dao.UserVoteOptionMapper;
import com.mls.fivedistrict.pojo.UserVoteOption;
import com.mls.fivedistrict.server.UserVoteOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户投票选项表 服务实现类
 * </p>
 *
 * @author Five Team
 * @since 2018-05-15
 */
@Service
public class UserVoteOptionServiceImpl extends ServiceImpl<UserVoteOptionMapper, UserVoteOption> implements UserVoteOptionService {
    @Autowired
    private UserVoteOptionMapper userVoteOptionMapper;

    @Override
    public List<UserVoteOption> selectListDetail(Wrapper wrapper) {
        List<UserVoteOption> userVoteOptionList = userVoteOptionMapper.getVoteOptionDetail(wrapper);
        return userVoteOptionList;
    }
}
